import {defineComponent, onUnmounted, reactive, toRefs} from 'vue'
import Draw from './draw'

export default defineComponent({
  props: {
    points: {
      type: Object,// 引用类型的话,默认值要为函数返回值的形式!!! 1.String 2.Number 3.Boolean 4.Array 5.Object 6.Date 7.Function 8.Symbol
      require: true
    },
  },
  components: {
    Draw,
  },
  setup(props) {
    const { points } = toRefs(props)

    return  () => {
      return (
          <div>
            <Draw points={points.value}/>
          </div>
      )
    }
  },
})
